//
// Created by Administrator on 2023/8/10.
//

#ifndef DATA_STUCT_STUDY_WZL_001_POLYNOMIAL_H
#define DATA_STUCT_STUDY_WZL_001_POLYNOMIAL_H

#include "LinkList.h"
/*
 * 一元二次多项式
 *
 */
typedef struct {    //项的表示，多项式作为LinkList的数据元素
    float coef; //系数
    int expn;   //指数
}term, ElemType;

typedef LinkList polynomial;

void CreatePolyn(polynomial &P, int m);
void DestroyPolyn(polynomial &P);


#endif //DATA_STUCT_STUDY_WZL_001_POLYNOMIAL_H
